﻿using System;

namespace 三月三零
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            a = 20;
            Console.WriteLine(a);  
            double b = 80.5;
            Console.WriteLine(b );
            String m;
            m = "myName";
            Console.WriteLine(a+"\n"+b+"\n"+m+"\n"+"姓名\t"+"年龄\t"+"分数\n"+m+"\t"+a+"\t"+b+"\t");
            Console.WriteLine("--------------------");
            Console.WriteLine("请输入员工性别");
            string sex=Console .ReadLine();
            Console.WriteLine("请输入员工是否已婚。是/1.否/0");
            int choose = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入员工年龄");
            int Aug = Convert.ToInt32(Console.ReadLine());

            if (choose == 1)
            {
                Console.WriteLine("因为已婚，公司提供保险");
            }
            else if (sex == "男" && Aug >= 25)
            {
                Console.WriteLine("因为未婚男性在25岁以上，公司提供保险");
            }
            else if (sex == "女" && Aug >= 22)
            {
                Console.WriteLine("因为未婚女性在22岁以上，公司提供保险");
            }
            else {
                Console.WriteLine("不提供保险");
            }
            Console.WriteLine("--------------------");
            Console.WriteLine("您是否为本店会员");
            string choosetwo = Console.ReadLine();
            Console.WriteLine("请输入您购买的商品总价");
            int sum = Convert.ToInt32(Console.ReadLine());
            double num;
            if (sum > 100 && choosetwo == "是")
            {
                num = sum * 0.8;
                Console.WriteLine("您需付款金额为" + num);
            }
            else if ((sum > 0 && choosetwo == "") || sum > 100 && choosetwo == "否")
            {
                num = sum * 0.9;
                Console.WriteLine("您需付款金额为" + num);
            }
            else {
                Console.WriteLine("您需付款金额为" + sum);
            }

        }
    }
}
